package com.pig4cloud.pig.admin.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;

import java.net.MalformedURLException;

/**
 * @author：田晋锋
 * @describe：
 * @date：2023/8/28 4:57 PM
 */

public interface HttpUtilService {

    String gethtml(String url);

    //@SentinelResource(value = "getRequest", blockHandler = "getRequestFallback")
    String getRequest(int i,Class clazz,String url,String entityType);

    String getRequestFallback(int i,Class clazz,String url,String entityType);
    //void close();

    void doBefore(String type) throws MalformedURLException;
}
